﻿function MessagePositionUser(data) {
    this.Id = ko.observable(data.Id ? data.Id : 0);
    this.Created = ko.observable(data.Created ? data.Created : "");
    this.Updated = ko.observable(data.Updated ? data.Updated : "");
    this.IsRead = ko.observable(data.IsRead ? data.IsRead : false);
    this.IsStarred = ko.observable(data.IsStarred ? data.IsStarred : false);
    this.IsSender = ko.observable(data.IsSender ? data.IsSender : false);
    this.IsDeleted = ko.observable(data.IsDeleted ? data.IsDeleted : false);
    this.MessageId = ko.observable(data.MessageId ? data.MessageId : 0);
    this.ProjectId = ko.observable(data.ProjectId ? data.ProjectId : 0);
    this.MessageFolderId = ko.observable(data.MessageFolderId ? data.MessageFolderId : 0);
    this.Sender = ko.observable(data.Sender ? data.Sender : null);
    this.Receivers = ko.observableArray(data.Receivers ? data.Receivers : []);
}